﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WodLib
{
    [Serializable()]
    [System.ComponentModel.TypeConverter(typeof(System.ComponentModel.ExpandableObjectConverter))]
    public class Skill : ICloneable
    {
        public int Value
        {
            get;
            set;
        }

        public string[] SpecialitiesList
        {
            get;
            set;
        }

        public TraitType TypeOfTrait
        {
            get;
            private set;
        }

        public Skill()
        {
            //SpecialitiesList = new string[1];
        }

        public Skill(TraitType typeOfTrait):this()
        {
            this.TypeOfTrait = typeOfTrait;
        }

        public void SetTypeOfTrait(TraitType type)
        {
            TypeOfTrait = type;
        }

        public override string ToString()
        {
            return Value.ToString();
        }

        #region ICloneable Members

        public object Clone()
        {
            return this.MemberwiseClone();
        }

        #endregion
    }
}
